﻿using System;
using System.Collections.Generic;
using System.Data;
using IDAL;
using Model;

namespace BLL
{
    public class AssembleDetail
    {
        private static readonly IAssembleDetail dal = DALFactory.DataAccess.CreateAssembleDetail();

        public bool AssembleDetailItems_Insert(AssembleDetailInfo ad, DataTable itemdt)
        {
            return dal.AssembleDetailItems_Insert(ad, itemdt);
        }

        public IList<AssembleDetailInfo> GetAssembleDetailbySN(string productSN)
        {
            return dal.GetAssembleDetailbySN(productSN);
        }

        public IList<AssembleDetailInfo> GetAssembleDetailbyDT(DateTime starttime, DateTime stoptime)
        {
            return dal.GetAssembleDetailbyDT(starttime, stoptime);
        }
    }
}
